package com.tool_stdy.dbPool;

import java.sql.Connection;

/**
 * Created by yan_li on 2017/1/12.
 */
public class PoolConnection {
    private Connection connection;

    private boolean isbusy = false;

    public PoolConnection(Connection connection, boolean isbusy) {
        this.connection = connection;
        this.isbusy = isbusy;
    }

    public Connection getConnection() {
        return connection;
    }

    public void setConnection(Connection connection) {
        this.connection = connection;
    }

    public boolean isbusy() {
        return isbusy;
    }

    public void setIsbusy(boolean isbusy) {
        this.isbusy = isbusy;
    }

    public void close() {
        this.isbusy = false;
    }
}
